<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:r="http://ricchieri.com/facelets"
	xmlns:p="http://primefaces.org/ui">

	<c:if test="${empty rendered}">
		<c:set var="rendered" value="true"/>
	</c:if>
	
	<c:if test="${empty id}">
		<c:set var="id" value=""/>
	</c:if>

	<c:if test="${empty styleClass}">
		<c:set var="styleClass" value="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only button-action"/>
	</c:if>
	
	<c:if test="${empty update}">
		<c:set var="update" value="@form"/>
	</c:if>
	
	<c:if test="${empty style}">
		<c:set var="style" value="true"/>
	</c:if>
	
	<c:if test="${empty partialSubmit}">
		<c:set var="partialSubmit" value="true"/>
	</c:if>
	
	<c:if test="${empty ajax}">
		<c:set var="ajax" value="true"/>
	</c:if>
	
	<c:if test="${empty process}">
		<c:set var="process" value="@form"/>
	</c:if>
	
	<c:if test="${empty icon}">
		<c:set var="icon" value=""/>
	</c:if>
	
	<c:if test="${empty message}">
		<c:set var="message" value=""/>
	</c:if>

	<c:if test="${empty disabled}">
		<c:set var="disabled" value="false"/>
	</c:if>

	<p:commandLink id="#{id}" disabled="#{disabled}" rendered="#{rendered}" action="#{action[method]}" styleClass="#{styleClass}" style="#{style}" update="#{update}" partialSubmit="#{partialSubmit}" process="#{process}" ajax="#{ajax}">
		<span class="ui-button-text ui-c"><i class="#{icon}"></i><r:space/>#{message}</span>
	</p:commandLink>


</ui:composition>